#include <cstdio>
#include <omp.h>

int cc = 10;
int main(){
    #pragma omp parallel for num_threads(8)
    for(int i=0; i<cc; i++){
        printf("(%3d %3d)\t", i, omp_get_thread_num());
    }
    int ww = 5;
    #pragma omp parallel num_threads(4)
    while (ww--)
    {
        printf("ww=%d\n", ww);
        #pragma omp for
        for(int i=0; i<4; i++){
            printf("(i=%3d t=%3d)\t", i, omp_get_thread_num());
        }
        printf("ww=%d\n", ww);
    }
    
}